<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link  rel="stylesheet" type="text/css" href="/Public/css/bootstrap.min.css" />
    <link rel="stylesheet" type="text/css" href="/Public/css/bootstrap-rtl.css" />
    <link rel="stylesheet" type="text/css" href="/Public/css/oyghan-common.css" />
    <script type="text/javascript" src="/Public/js/jquery-3.1.1.js"></script>
    <script type="text/javascript" src="/Public/js/bootstrap.js"></script>
    <script type="text/javascript" src="/Public/js/layer.js"></script>
</head>
<body>
<nav class="navbar navbar-inverse">
    <div class="container">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header ">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Blog v1.0</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li class="<?php if( CONTROLLER_NAME == 'Index' ): ?>active<?php endif; ?>"><a href="<?php echo U('Index/index');?>">باش بەت <span class="sr-only">(current)</span></a></li>
                <li  class="<?php if( CONTROLLER_NAME == 'Content' ): ?>active<?php endif; ?>"><a href="<?php echo U('Content/index');?>">مەزمۇن</a></li>
                <li class="<?php if( CONTROLLER_NAME == 'Tools' ): ?>active<?php endif; ?>"><a href="<?php echo U('Tools/index');?>">ئىقتىدار</a></li>
                <li class="<?php if( CONTROLLER_NAME == '' ): ?>active<?php endif; ?>"><a href="#">ئەزا</a></li>

            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">ئالدى بەت</a></li>
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
                       aria-expanded="false"><span>ئەسسالامۇ ئەلەيكۇم! </span>&nbsp;<?php echo ($_SESSION['blog_admin']['name']); ?></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo U('Index/profile');?>">ئارخىپ باشقۇرۇش</a></li>
                        <li><a href="<?php echo U('Index/quite');?>">بىخەتەر چىكىنىش</a></li>
                    </ul>
                </li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
<div class="container">
    <div class="row">
        <div class="btn-group-vertical col-md-2">
    <a  class="btn btn-default  <?php if( CONTROLLER_NAME == 'Links' ): ?>active<?php endif; ?>" href="<?php echo U('Links/index');?>">ئۇلىنىش باشقۇرۇش</a>
    <a  class="btn btn-default  <?php if( CONTROLLER_NAME == 'Navs' ): ?>active<?php endif; ?>" href="<?php echo U('Navs/index');?>" >تىزىملىك باشقۇرۇش</a>
    <a  class="btn btn-default  <?php if( CONTROLLER_NAME == 'Configs' ): ?>active<?php endif; ?>" href="<?php echo U('Configs/index');?>" >تەڭشەك باشقۇرۇش</a>
</div>
        <div class="col-md-10">
            <div class="page-header"><h3><?php echo ($page_title); ?></h3></div>
            <a  class="btn btn-default" href="<?php echo U('Links/index');?>">ئۇلىنىشلار</a>&nbsp;
            <a  class="btn btn-default" href="<?php echo U('Links/add');?>">ئۇلىنىش قۇشۇش</a><br><br>
           <div class="row">
               <form action="<?php echo U('Links/saveHandler');?>" method="post">
                   <input type="hidden" value="<?php echo ($link['id']); ?>" name="id">
            <div class="form-group">
                <input type="text" name="lname" class="form-control" placeholder="ئۇلىنىش نامىنى يىزىڭ" value="<?php echo ($link['lname']); ?>">
            </div>
            <div class="form-group">
                <input  type="text" class="form-control" name="lurl" placeholder="ئۇلىنىش ئادىرىسنى يىزىڭ" value="<?php echo ($link['lurl']); ?>">
            </div>
                   <div class="form-group">
                       <input  type="text" class="form-control" name="site_name" placeholder="باشقۇرغۇچى نامىنى يىزىڭ" value="<?php echo ($link['site_name']); ?>">
                   </div>
                   <div class="form-group">
                       <input  type="text" class="form-control" name="site_QQ" placeholder="QQ" value="<?php echo ($link['site_qq']); ?>">
                   </div>
                   <div class="radio">
                       <label class="radio-inline">
                           <input type="radio" name="target"  value="1" <?php if($link['target']==1): ?>checked<?php endif; ?>> يېڭى كۆزنەكتە ئىچىلسۇن
                       </label>
                       <label class="radio-inline">
                           <input type="radio" name="target"  value="0" <?php if($link['target']==0): ?>checked<?php endif; ?>> مەزكۇر كۆزنەكتە ئىچىلسۇن
                       </label>
                   </div>
                   <div class="radio">
                       <label class="radio-inline">
                           <input type="radio" name="status" id="inlineRadio1" value="1" <?php if($link['status']==1): ?>checked<?php endif; ?>> ئۇچۇق
                       </label>
                       <label class="radio-inline">
                           <input type="radio" name="status" id="inlineRadio2" value="0" <?php if($link['status']==0): ?>checked<?php endif; ?>> تاقاق
                       </label>
                   </div>
            <button  type="submit" class="btn btn-primary" >ساقلاش</button>
               </form>
        </div>



    </div>
</div>
</body>
</html>